#define  _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<unordered_map>
#include<vector>
#include<string>

using namespace std;


int main()
{
	vector<vector<string>> equations = { {"a","b"},{"c","d"},{"e","f"},{"g","h"} };
	unordered_map<string, unordered_map<string, double>> graph;
	int n = equations.size();
	for (int i = 0; i < n; i++)
	{
		string s1 = equations[i][0], s2 = equations[i][1];
		graph[s1][s2] = 2; //s1->s2 = path
		graph[s2][s1] = 1 / 2; //s2->s1 = 1/path
		graph[s1][s1] = 1.0;
		graph[s2][s2] = 1.0;
	}
	
	
	return 0;
}